third-party-exp-api
Western Union - Transaction Inquiry
Description: This API returns the status of a single transaction.
The experience API (third-party-api) will push the requests to third-party-prc api which sends the request to wu-sys-api and responds back to the channel.
Channel should send receiver details along with either mtcn or transactionId.
Mulesoft Request:
Headers:
Mandatory Headers: x-correlation-id, client_id, Authorization, x-channel-id, x-bank-id
Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret
Parameters:
URI Param: NA
Query Param: NA
Body
{
"receiverFirstName": "ZAREEN",
"receiverLastName": "KHAN",
"moneyTransferControlNumber": "8009340477",
}
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
response:
{
"transactionId": "2221188009340477",
"transactionStatus": "AVAILABLE",
"moneyTransferControlNumber": "8009340477",
"moneyTransferDate": "07-30-22 0532P EDT"
}
}
Sample Error Response:
500 :
{
"success”: false,
"code”: 500,
"reasonCode”: "Internal Server Error",
"arabicMessage”: "",
"englishMessage":"NO MATCHING RECORDS FOUND",
"backendError": "NO MATCHING RECORDS FOUND", (if debug flag is on)
"backendCode": "D0004" (if debug flag is on)
}